package university.huangyueran.polytechnic.com.libraryreservationassistant.ui.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import university.huangyueran.polytechnic.com.libraryreservationassistant.screens.TwoWayPagerFragment;

/**
 * Created by GIGAMOLE on 8/18/16.
 */
public class MainPagerAdapter extends FragmentStatePagerAdapter {

    private final static int COUNT = 3;

    private final static int HORIZONTAL = 0;
    private final static int TWO_WAY = 1;
    FragmentManager mFragmentManager;

    public MainPagerAdapter(final FragmentManager fm) {
        super(fm);
        this.mFragmentManager = fm;
    }

    @Override
    public Fragment getItem(final int position) {
        return new TwoWayPagerFragment(mFragmentManager);
    }

    @Override
    public int getCount() {
        return COUNT;
    }
}
